#ifndef ADMININFOMAG_H
#define ADMININFOMAG_H

#include <QWidget>
#include <QTableView>
#include <QSqlTableModel>
#include <QStandardItemModel>
#include <QModelIndex>
#include "administrator_info_add.h"

namespace Ui {
class AdminInfoMag;
}

class AdminInfoMag : public QWidget
{
    Q_OBJECT

public:
    explicit AdminInfoMag(QWidget *parent = nullptr);
    ~AdminInfoMag();
    void insertIntoAdmin(QString username, QString password, QString adminType);
    void setWinStyle();
    void adminTableOP();

private slots:
    void on_searchPushButton_clicked();

    void on_deletePushButton_clicked();

    void on_addPushButton_clicked();

private:
    Ui::AdminInfoMag *ui;
    QSqlTableModel *M;
    administrator_info_add *admin_add;
};

#endif // ADMININFOMAG_H
